<?php
	header('Content-type:text/html;charset=utf-8');

	include "./x.php";
	include dirname(__FILE__)."/libs/Smarty.class.php";
	include dirname(__FILE__)."/include/config.inc.php";
	//设置报错级别
	error_reporting(0);
	$smarty = new Smarty();

    //语言参数
    if(!$_COOKIE['wm_lan'])
    {
        setcookie("wm_lan","zh");
        $smarty -> assign('lan','zh');
    }
    else
    {
        $smarty -> assign('lan',$_COOKIE['wm_lan']);
    }

    //查询标准
    $rule = $dosql->Execute("SELECT title,content FROM `#@__soft` WHERE `siteid`='1' and `checkinfo`='true' and `classid`='7' order by orderid asc limit 9");
    while($rule = $dosql->GetArray())
    {
        $rules[] = $rule;
    }
    @$rules_one[] = $rules['0'];
    @$rules_one[] = $rules['1'];
    @$rules_one[] = $rules['2'];
    @$rules_two[] = $rules['3'];
    @$rules_two[] = $rules['4'];
    @$rules_two[] = $rules['5'];
    @$rules_thr[] = $rules['6'];
    @$rules_thr[] = $rules['7'];
    @$rules_thr[] = $rules['8'];

    //全局变量
    //语言
    $lan = $_COOKIE['wm_lan'];

	//网站的title
	$smarty -> assign('title_zh',$cfg_webname_zh);
	$smarty -> assign('title_en',$cfg_webname_en);
    //关键字
    $smarty -> assign('keyword',$cfg_keyword);
    //网站描述
    $smarty -> assign('description',$cfg_description);
    //版权信息
	$smarty -> assign('copyright',$cfg_copyright);
    //传入规则
	$smarty -> assign('rules_one',$rules_one);
	$smarty -> assign('rules_two',$rules_two);
	$smarty -> assign('rules_thr',$rules_thr);
?>